package com.yiyuplatform.controller;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yiyuplatform.form.DiagnoseForm;
import com.yiyuplatform.service.diagnose.DiagnoseFlow;
import com.yiyuplatform.vo.DiagnoseVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: Drew
 * @Date: 8:38
 * @Description: 诊断相关业务的接口
 */
@RestController
@Api(tags = "诊断业务")
@Slf4j
@RequestMapping("api")
@RequiredArgsConstructor
public class DiagnoseController {
    @Autowired
    private DiagnoseFlow diagnoseFlow;
    @ApiOperation("提交诊断表单")
    @PostMapping(value = "diagnose/submit_diagnose")
    public DiagnoseVO.FeedbackVO SubmitDiagnose(@RequestBody DiagnoseForm.SubmitDiagnose submitDiagnose,
                                                @JsonProperty("audio_url")String audioUrl,
                                                @JsonProperty("activity_url")String actUrl)
    {
        DiagnoseVO diagnoseVO=new DiagnoseVO();
        /**
         * code here
         * */
        DiagnoseVO.FeedbackVO feedbackVO =diagnoseVO.new FeedbackVO();
        return feedbackVO;
    }

}
